home *** CD-ROM | disk | FTP | other *** search
- Path: fizban.solace.mh.se!usenet
- From: Roger Martensson <ping9535@ntostud.mh.se>
- Newsgroups: comp.lang.c
- Subject: C to asm stuff
- Date: Thu, 25 Jan 1996 13:09:36 +0000
- Organization: Mid Sweden University
- Message-ID: <31078110.54AB@ntostud.mh.se>
- NNTP-Posting-Host: @ljusnan.ntostud.mh.se
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (X11; I; SunOS 5.4 sun4m)
-
- Hello everyone!
-
- I'm setting up a minor page for my classmates, where I show them
- the difference between different machinecode sets.
-
- I made a small C programme, and compiled it with the -S option
- in GCC to get the assembler code.
-
- What I would like to ask you if you could check the CPU list below and
- if you have a computer with one of those CPUs, please compile the
- following C program and send the asm source to me.
-
- I've already got asm sources for these CPU's
- SPARC
- VAX
- INTEL 386+
- MC68030
-
- And I would like to have sources for these CPU's
- HP
- CRAY
- MIPS
- PPC
- And other CPU's that's not listed here.
-
- Please use the following C program:
- ------------------
- #include <stdio.h>
-
- void main(void)
- {
- int a;
- int i;
- printf("This is a test");
- a=98*9;
- for(i=0;i<100;i++)
- {
- a=i*a;
- printf("%d\n", a);
- }
- }
- -----------------
-
- Compile it with GCC test.c -otest.s -S, or anyother compiler.
- Please don't post in this newsgroup, because I don't read it that
- often. Please use my E-Mail address below.
-
- Thanks in advance to everyone that replys.
- Regards,
- --
- Roger Martensson E-Mail: ragge@medio.mh.se
- Slattervagen 19 IRC: Ragge
- S-831 61 OSTERSUND Also: Amiga owner
- SWEDEN
-